SelRTF Property

       

Returns or sets the text (in .rtf format) in the current selection of a RichTextBox control. Not available at design time.

Syntax

object.SelRTF [= string]

The SelRTF property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
string A string expression in .rtf format.

Remarks

Setting the SelRTF property replaces any selected text in the RichTextBox control with the new string. This property returns a zero-length string ("") if no text is selected in the control.

You can use the SelRTF property along with the Print function to write .rtf files.